<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="bootstrap-3.4.1-dist/css/bootstrap.css">
    <script src="jq/jquery2.0.3/jquery-2.0.3.js"></script>
    <script src="./bootstrap-3.4.1-dist/js/bootstrap.js"></script>
    <style>
        .col1 {
            background: red;
        }

        .col2 {
            background: yellow;
        }

        .col3 {
            background: yellowgreen;
        }

        .col4 {
            background: hotpink;
        }
        .row div{
            border:1px solid red;
        }
        .row .row div{
            border:1px solid #ccc;
        }
    </style>
</head>

<body>

    <!-- https://v3.bootcss.com/ -->
    <!-- https://www.ilayuis.com/ -->
    <div class="container">

        <!-- 默认情况下独占一行 -->

        <!-- .col-md-offset-* 类可以将列向右侧偏移 -->
        <div class="row">
            <div class="col1 col-md-4 col-md-offset-3">col1</div>
            <div class="col2 col-md-2">col2</div>
            <div class="col3 col-md-3">col3</div>
            
        </div>
        <hr>

        <!-- 通过使用 .col-md-push-* 和 .col-md-pull-* 类就可以很容易的改变列（column）的顺序。 -->
        <div class="row">
            <div class="col1 col-md-4 col-md-push-2">col1</div>
            <div class="col2 col-md-2 col-md-pull-4">col2</div>
            <div class="col3 col-md-3">col3</div>
        </div>
       <hr>
       <!-- 列嵌套 -->
       <div class="row">
            <div class="col-md-8">
                <div class="row">
                    <div class="col-xs-6">1</div>
                    <div class="col-xs-6">1</div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="row">
                    <div class="col-xs-4">1</div>
                    <div class="col-xs-4">1</div>
                    <div class="col-xs-4">1</div>
                </div>
            </div>
       </div>

    
    </div>

  
</body>

</html>